﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Site.Properties;
using SDT.Lib.Paging;
using System.Web.Mvc;

namespace SDT.Site.ViewModels
{
    public class ProjectListModels
    {
        public IList<Project> Projects
        {
            get;
            set;
        }
        public ProjectCategory Category { get; set; }
       

        public IList<ProjectLegalStatus> ProjectLegals
        {
            get;
            set;
        }

        public string Keyword
        { 
            get;
            set;
        }

        public string ImagePath
        {
            get;
            set;
        }

        public string ImageUrl
        {
            get;
            set;
        }
    }
    public class ProjectIndexModels
    {
        public IPagedList<Project> Projects { get; set; }
        public IList<ProjectCategory> Categories { get; set; }
        public IList<District> Districts { get; set; }
        public IList<City> Cities { get; set; }

        public int? CityID { get; set; }
        public int? DistrictID { get; set; }
        
        public ProjectCategory Category { get; set; }
        public City City { get; set; }
        public District District { get; set; }
        public Company Company { get; set; }
        public string PathTitle { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
    public class ProjectDetailModels
    {
        public Project Project { get; set; }
        public string PathTitle { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }

        public string ImageListPath { get; set; }
        public string ImageListUrl { get; set; }

        public string CompanyImagePath { get; set; }
        public string CompanyImageUrl { get; set; }

        public IList<ProjectImageType> ProjectImageTypies { get; set; }
        public string GoogleAPI
        {
            get
            {
                return Settings.Default.GoogleAPI;
            }
        }
        
    }
    public class ProductsInProjectModels
    {
        public Project Project { get; set; }
        public IList<ProductCategory> ProductCategories { get; set; }
    }
}
